<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var getconfirmarrivalUrl="{:U('Order/get_arrival')}";
	var inboundUrl="{:U('Order/arrival_inbound')}";
	var confirmArrivalpushUrl="{:U('Pushsendapi/realsend')}";
	var confirmArrivalSaveUrl="{:U('Order/confirmArrivalSave')}";
	var goodsId="{:I('id')}";//库存商品对应id
	var inbound_status="{:I('cid')}";//库存商品对应id
	if(!inbound_status){
		inbound_status=0;
	}
	var printconfirmarrivalUrl="{:U('Order/printconfirmarrival')}";//入库单
	var otherInboundExamineUrl="{:U('Order/otherInboundExamine')}";
	var storage_lists={$storage_lists};
	<!-- using('../../../default/js/confirm_arrival.js'); -->
	
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/confirm_arrival.js"></script>

	<table id="arrivalDatagrid" toolbar="#confirm_arrival_tb"></table>
    <!-- 搜索栏 -->
    <div id="confirm_arrival_tb">
        <form name="formsearch" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="confirmArrivalObj.showAll()">全部</a>
            单号:<input class="easyui-textbox" name="order_no" style="width:150px;height:30px;"> 
			账册编码:<input class="easyui-textbox" name="manual_id" style="width:150px;height:30px;"> 
			商品编码:<input class="easyui-textbox" name="goods_no" style="width:150px;height:30px;"> 
			商品名称:<input class="easyui-textbox" name="goods_name" style="width:150px;height:30px;">
			云仓商品: 
			<select class="easyui-combobox cloud_depot_status"  style="width:70px;height:30px;">
				<option value="0">未选择</option>
				<option value="1">是</option>
				<option value="2">否</option>
			</select>
			时间: <input class="easyui-datetimebox" name="start_time" value="{:date('Y-m-1',time())}" style="height:30px;width:150px;">
			- <input class="easyui-datetimebox" name="end_time" value="{:date('Y-m-d h:i:s',time())}" style="height:30px;width:150px;">
			时间类型: 
			<select class="easyui-combobox" name="time_cate" style="width:150px;height:30px;">
				<option value="0">未选择</option>
				<option value="1">到货时间</option>
				<option value="2">预计到货时间</option>
				<option value="3">审核时间</option>
				<option value="4">推送实收时间</option>
			</select>
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
        <a href="javascript:void(0)" onclick="confirmArrivalObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">编辑</a>
		<a href="javascript:void(0)" onclick="confirmArrivalObj.inboundBar()" class="easyui-linkbutton" data-options="iconCls:'icon-door_in',plain:true">入库</a>
		<a href="javascript:void(0)" onclick="confirmArrivalObj.pushBar()" class="easyui-linkbutton" data-options="iconCls:'icon-world_go',plain:true">推送实收数据</a>
		<a href="javascript:void(0)" onclick="confirmArrivalObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="confirmArrivalObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
		<a href="javascript:void(0)" onclick="confirmArrivalObj.printBar()" class="easyui-linkbutton" data-options="iconCls:'icon-printer',plain:true">打印入库单</a>
    </div>
    <!-- /搜索栏 -->
	<!-- 编辑 -->
    <div id="confirmArrivalEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#confirmArrivalEditButtons"  modal="true">
        <form id="confirmArrivalEditForm" method="post" novalidate>          
            <div class="fitem">
                <label>单号</label>
                <input name="id"  type="hidden" />
                <input name="order_no"  type="text" class="easyui-textbox" data-options="disabled:true,required:true,delay:1000,height:30,validType:['length[5,20]']" />
            </div>
			<div class="fitem">
                <label>账册编号</label>
                <input name="manual_id"  type="text" class="easyui-textbox" data-options="disabled:true,required:true,delay:1000,height:30,validType:['length[5,20]']" />
            </div>
			<div class="fitem">
                <label>商品编码</label>
                <input name="goods_no"  type="text" class="easyui-textbox" data-options="disabled:true,required:true,delay:1000,height:30,validType:['length[5,20]']" />
            </div>
			<div class="fitem">
                <label>商品名称</label>
                <input name="goods_name"  type="text" class="easyui-textbox" data-options="disabled:true,required:true,delay:1000,height:30,validType:['length[5,20]']" />
            </div>
			<!-- <div class="fitem"> -->
                <!-- <label>条形码</label> -->
                <!-- <input name="bar_code"  type="text" class="easyui-textbox" data-options="disabled:true,required:true,delay:1000,height:30,validType:['length[5,20]']" /> -->
            <!-- </div> -->
			<div class="fitem">
                <label>预计到货数量</label>
                <input name="declare_amount"  type="text" class="easyui-textbox" data-options="disabled:true,required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>单价</label>
                <input name="price" class="easyui-textbox" data-options="required:true,height:30" />
            </div>
			<div class="fitem">
                <label>实际到货数量</label>
                <input name="receive_amount"  type="text" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>合格品</label>
                <input name="conforming_p"  type="text" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>残次品</label>
                <input name="nonconforming_p"  type="text" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>报废品</label>
                <input name="scrap_one"  type="text" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
        </form>
    </div>
    <div id="confirmArrivalEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="confirmArrivalObj.save('{:U('Order/confirmArrivalSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#confirmArrivalEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->  
</body>